package com.duck.user.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserFollowDao {

    void followUser(@Param("followerId") Long followerId, @Param("followingId") Long followingId);

    void unfollowUser(@Param("followerId") Long followerId, @Param("followingId") Long followingId);

    int countFollowing(@Param("userId") Long userId);

    int countFollowers(@Param("userId") Long userId);

    List<Long> getFollowingList(@Param("userId") Long userId);

    List<Long> getFollowersList(@Param("userId") Long userId);
}
